package org.celery.modules.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 商户表.实体类
 *
 * @author Celery
 * @since 2021-10-30
 */
@Data
@TableName("celery_merchant")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Merchant对象", description = "商户表.")
public class Merchant extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
  private Long id;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private String tenantId;
    /**
     * 店铺名称
     */
    @ApiModelProperty(value = "店铺名称")
    private String name;
    /**
     * 店铺编号
     */
    @ApiModelProperty(value = "店铺编号")
    private String code;
    /**
     * 店铺相关图片
     */
    @ApiModelProperty(value = "店铺相关图片")
    private String pictureUrl;
    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人")
    private String linkman;
    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    private String contactNumber;
    /**
     * 店铺位置
     */
    @ApiModelProperty(value = "店铺位置")
    private String address;
    /**
     * 店铺经纬度
     */
    @ApiModelProperty(value = "店铺经纬度")
    private String longitudeAndLatitude;
    /**
     * 店铺描述
     */
    @ApiModelProperty(value = "店铺描述")
    private String description;


}
